<?php
namespace addons\caipiao\validate;

use think\Validate;

class HomeValidate extends Validate{
    protected $rule=[
        'relname'=>'require',
        'mobile'=>'require|mobile',
        'img_url'=>'require',
        'openid'=>'require',
        'balance'=>'require'
    ];
    protected $message = [
        'relname.require' => '名称必须',
        'mobile.require'  => '电话必须',
        'mobile.mobile'   => '合规手机号',
        'img_url.require' => '必上传彩票图片',
        'openid.require'  => 'openid必须',
        'balance.require' => '中奖金额必须',
    ];
    protected $scene = [
        'add'  =>  ['relname','mobile','img_url','openid','balance']
    ];
}
